<?php
	$this->title('Edit Icd Entry');
?>

<h3>Patient <?=$patient->PatID;?></h3>

<?=$this->form->create($icdNineEntry);?>
<?=$this->form->label('Code ID');?>
<?php
	$codeCollection = array();
	foreach ($icdCodesCollection as $icdCodesEntry) {
		$codeCollection[$icdCodesEntry->id] = $icdCodesEntry->code . " : " . $icdCodesEntry->name;
	}
?>
<?=$this->form->select('code_id', $codeCollection, array(
	'label' => 'Code',
	'value' => $icdNineEntry->code_id)
	);?>
<?=$this->form->field('date_given', array('label' => 'Date Given'));?>
<?=$this->form->submit('Save'); ?>
<?=$this->form->end();?>